% ECG_TIMELINE      ECG Heart-rate scattered plot
%
% Function: 
% - To obtain a scatter plot of diagram for heartrate analysis
% - If a patient has a stacked plot of scatter diagram, the patient should
%   tends to have a normal sinus rhythms
% - Vice versa, the more randomly the plot obtained, the higher 
%   probability of a patient to have arrthymia.
%
%
% Copyright: Group 8
% Modified at 20th Oct 2010
%-------------------------------------------------------------------------
function ecg_timeline(HR_real) 
 
 [max_HR,min_HR,sd_ecg,HR_modified] = ecg_history(HR_real);
 
subset = 2:length(HR_modified);
scatter(HR_modified(subset-1),HR_modified(subset),'filled')
  axis image
grid on
title('Poincare Plot'),xlabel('Heart rate [i] / min^{-1}'),ylabel('Heart rate [i+1] / min^{-1}')
